{% load i18n %}

<a href="{{ unit.get_absolute_url }}" class="btn btn-primary">{% translate "View" %}</a>
{% if user_can_edit_screenshot %}
  <form class="inlineform"
        action="{% url 'screenshot-remove-source' pk=object.pk %}"
        method="post">
    {% csrf_token %}
    <input type="hidden" name="source" value="{{ unit.pk }}" />
    <button type="submit" class="btn btn-danger">{% translate "Remove" %}</button>
  </form>
{% endif %}
